/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dynamixel;

/**
 *
 * @author root
 */
public abstract class ComPortFindParam {

    public int baudRate;
    public int dataBits;
    public int stopBits;
    public int parity;
    public int bytes_cnt;
    public int timeout;
    

    public int getBaudRate() {
        return baudRate;
    }

    public int getDataBits() {
        return dataBits;
    }

    public int getStopBits() {
        return stopBits;
    }

    public int getParity() {
        return parity;
    }

    public int getBytesCnt() {
        return bytes_cnt;
    }

    public int getTimeOut() {
        return timeout;
    }
    
    
    public abstract boolean isFinded(int[] pckg);

    public abstract int[] getSendPckg();


    public ComPortFindParam(int baudRate, int dataBits, int stopBits, 
            int parity, int BYTES_CNT,int timeout) {
        this.baudRate = baudRate;
        this.dataBits = dataBits;
        this.stopBits = stopBits;
        this.parity = parity;
        this.bytes_cnt = BYTES_CNT ;
        this.timeout = timeout ;
    }
}
